package com.cy.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProviderController {


    /*获取端口号*/
    @Value("${server.port}")
    private String port;

    /*请求地址*/
    @GetMapping(value = "/provider/echo/{message}")
    public String doEcho(@PathVariable String message) {
        return port+"端口  say:"+ message;

    }
}
